package com.netty.tcp.ew.service.impl;

import com.netty.tcp.ew.mapper.PortReDataMapper;
import com.netty.tcp.common.AjaxResult;
import com.netty.tcp.ew.domain.PortReData;
import com.netty.tcp.ew.service.PortReDataService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @author hzj
 * @date 2021/1/8 16:12
 */
@Service
public class PortReDataServiceImpl implements PortReDataService {
    @Autowired
    private PortReDataMapper portReDataMapper;
    @Override
    public AjaxResult insert(PortReData portReData) {
        int insert = portReDataMapper.insert(portReData);
        if(0==insert){
            return AjaxResult.error();
        }
        return AjaxResult.success();
    }
}
